﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpaceGame
{
    public static class Utilities
    {
        public static bool RectanglesIntersect(int AMinX, int AMinY, int AMaxX, int AMaxY,
            int BMinX, int BMinY, int BMaxX, int BMaxY)
        {
            return ((AMaxX > BMinX) && (BMaxX > AMinX) && (AMaxY > BMinY) && (BMaxY > AMinY));
        }

    }
}
